import {systemSidebarRoutes} from "@/router/sidebar/system.js";
import {contractSidebarRoutes} from "@/router/sidebar/contract.js";
import {documentSidebarRoutes} from "@/router/sidebar/document.js";

export const commonSidebarRoutes = [
    {
        path: '',
        component: () => import('@/layout/index.vue'),
        redirect: '/index',
        children: [
            {
                path: '/index',
                component: () => import('@/views/home/index.vue'),
                name: 'Index',
                meta: { title: '首页', icon: 'dashboard', affix: true }
            }
        ]
    },
]

export const allSidebarRoutes = [...commonSidebarRoutes, ...systemSidebarRoutes, ...contractSidebarRoutes, ...documentSidebarRoutes]